package com.icss.lesson2;

public class A {
    // 保护的protected 用于子类继承父类可访问
    protected int a1;

    public void a2() {
        System.out.println("A@a2()");

    }

}
class B extends A {

    public void a3() {
        System.out.println("---------");
    }
    @Override
    public void a2() {
//        super.a2();
        System.out.println("B@a2()");
    }
}
